<?php
class Setting extends AppModel {

	var $name = 'Setting';

	function loadSettings() {
		$settings = $this->find('all');
		
		$arraySettings = array();
		
		foreach($settings as $setting) {
			$arraySettings[$setting['Setting']['name']] = $setting['Setting']['value'];
		}
		
		return $arraySettings;
	}
}
?>